package com.servertrack

import java.util.Date;

class Times {	
	 String title
	 Integer price
	 Date dateCreated
	
	static belongsTo=[hotel:Hotel]
	
	static hasMany=[request:Request]
	
    static constraints = {
		title(size:5..30,blank:false)
		price(blank:false)
		dateCreated(blank:true)
    }
	
	String toString(){
		return "Times: ${title}"
	}
}
